/**
 * 
 */
package org.jenkon.core;

import java.io.Serializable;
import java.util.Map;

/**
 * @author Jens Konopka
 * 
 */
public interface ApplicationContext extends Serializable {

	<T> void addBean(final T bean) throws Exception;

	<T> void addBean(final String name, final T bean) throws Exception;

	<T> T getBean(final Class<T> clz) throws Exception;

	<T> T getBean(final String name) throws Exception;
	
	Map<String, Object> getBeans();

}
